
import useAxiosApi from '@/utils/useAxiosApi';

export function addMenu(data: any) {
    return useAxiosApi(`menu/addMenu`, {
        method: 'POST',
        data: data
    });
}


export function menuList(data: any) {
    return useAxiosApi(`menu/list`, {
        method: 'GET',
    });
}

export function moveMenu(data: any) {
    return useAxiosApi(`menu/move`, {
        method: 'GET',
        params: data
    });
}

export function deleteMenu(data: any) {
    return useAxiosApi(`menu/delete`, {
        method: 'POST',
        data: data
    });
}

/***
 * 从该组移除
 */
export function removeNote(data: any) {
    return useAxiosApi(`menu/removeNote`, {
        method: 'GET',
        params: data
    });
}
